package com.central.comment

import com.central.common.ribbon.annotation.EnableFeignInterceptor
import com.central.search.annotation.EnableSearchClient
import com.codingapi.txlcn.tc.config.EnableDistributedTransaction
import org.springframework.boot.autoconfigure.SpringBootApplication
import org.springframework.boot.runApplication
import org.springframework.cloud.client.discovery.EnableDiscoveryClient
import org.springframework.transaction.annotation.EnableTransactionManagement

/**
 * @author  fly
 * @date  2021/5/18 9:49
 * @version 1.0
 */

@EnableDiscoveryClient
@EnableSearchClient
@EnableTransactionManagement
@EnableDistributedTransaction
@EnableFeignInterceptor
@SpringBootApplication
open class CommentCenterApp

fun main(args: Array<String>) {
    runApplication<CommentCenterApp>(*args)
}